/**
 * MCGetPartOfFile.java
 */
package commands.model;
import dataTypes.File;

/**
 * Request to return a part of a shared file.
 * @author Michal Kolodziejski
 */
public class MCGetPartOfFile extends ModelCommand {
	/** A file of which a part is requested. */
	private File file;
	/** A number of requested part. */
	private int partNumber;
	
	
	/**
	 * Constructor
	 * @param file a file of which a part is requested
	 * @param partNumber a number of requested part
	 */
	public MCGetPartOfFile(File file, int partNumber){
		super(ModelCommandType.GET_PART_OF_FILE);
		this.file = file;
		this.partNumber = partNumber;
	}

	/**
	 * @return the file of which a part is requested
	 */
	public File getFile() {
		return file;
	}

	/**
	 * @return the number of requested part
	 */
	public int getPartNumber() {
		return partNumber;
	}
}
